package top.zsyle.movie.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhongshiyi
 * @since 2023-01-02
 */
@TableName("t_user_movie")
public class UserMovie extends Model<UserMovie> {

    private static final long serialVersionUID = 1L;

    @TableField("user_id")
    private Long userId;
    @TableField("movie_ticket_id")
    private Long movieTicketId;
    private Integer count;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMovieTicketId() {
        return movieTicketId;
    }

    public void setMovieTicketId(Long movieTicketId) {
        this.movieTicketId = movieTicketId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserMovie{" +
        ", userId=" + userId +
        ", movieTicketId=" + movieTicketId +
        ", count=" + count +
        ", id=" + id +
        "}";
    }
}
